<?php

class SF_AttrBindCategory_Model_Source_Set extends Varien_Object
{
    protected function _getCollection()
    {
        $entityTypeId = Mage::getModel('eav/entity_type')
                                 ->getCollection()
                                 ->addFieldToFilter('entity_type_code','catalog_product')
                                 ->getFirstItem()
                                 ->getId();
        $collection    = Mage::getModel('eav/entity_attribute_set')
                                 ->getCollection()
                                 ->addFieldToSelect('*')
                                 ->addFieldToFilter('entity_type_id',array('eq'=>$entityTypeId));
        return $collection;
    }
    
    public function getAllOptions()
    {
         $data=array();
         $collection = $this->_getCollection();
         foreach($collection as $attributeSet)
         {
            $data[] = array
            (
                    'label' => $attributeSet->getData('attribute_set_name'),
                    'value' => $attributeSet->getData('attribute_set_id')
            );
         }
         return $data;
    } 
}